/*
 * JpaUtil.java
 *
 * Created on 22 de Agosto de 2007, 23:54
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package br.com.sgpa.utilidade;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 *
 * @author Leandro
 */
public class JpaUtil {    
    private static EntityManagerFactory emf;
    
    static{
        emf = Persistence.createEntityManagerFactory("sgpaPU");
    }
            
           
    
    /** Creates a new instance of JpaUtil */
    public JpaUtil() {
    }
    
    public static EntityManager getGerenteDeEntidades()
    {
       return emf.createEntityManager();        
    }
}
